import axios from '../model/axios'


export const developerQuery = (params: any) => {
<<<<<<< HEAD
  
=======
>>>>>>> 8d52c2c1bd1e64fb3715f084159974e708434e9d
 

return axios({
    method: 'get',
    url: '/api/developers/query',
    headers: {
      token: window.localStorage.getItem("token")
    },
    params
  })
}

export const developerQueryMe = (params: any) => {
  return axios({
    method: 'get',
    url: '/api/developers/developerQuery',
    headers: {
      token: window.localStorage.getItem("token")
    },
    params
  })
}

export const developerAdd = (data: any) => {
  return axios({
    method: 'post',
    url: '/api/developers/add',
    headers: {
      token: window.localStorage.getItem("token")
    },
    data
  })
}
export const developerGroup = (params: any) => {
  return axios({
    method: "get",
    url: "/api/developers/group",
    headers: {
      token: window.localStorage.getItem("token")
    },
    params
  })
}

export const developersUpdate = (data: any) => {
  return axios({
    method: 'patch',
    url: "/api/developers/update",
    data
  })
}

export const userDel = (data: any) => {
  return axios({
    method: 'delete',
    url: '/api/users/del',
    data
  })
}
